package org.kwin.spring.web.handler;

import java.util.HashMap;

/**
 * @author : wangkai
 * @version V1.0
 * @Package org.kwin.spring.web.handler
 * @Description:
 * @date 2021年09月28日 17:20
 **/
public class ModelAndView extends HashMap<String, Object> {
    private String viewName;
    
    public String getViewName()
    {
        return viewName;
    }
    
    public void setViewName(String viewName)
    {
        this.viewName = viewName;
    }
    
    public ModelAndView(String viewName)
    {
        this.viewName = viewName;
    }
    
    public ModelAndView()
    {
        this("");
    }
    
    public boolean addObject(String key, Object value)
    {
        return super.put(key, value) == null;
    }
}